export type RoleType = '' | '*' | 'user';

// 管理员信息接口
export interface AdminInfo {
  id: number;
  username: string;
  password: string;
  portrait: string;
  loginnum: number;
  last_login_ip: string;
  last_login_time: number;
  phone: string;
  real_name: string;
  status: number;
  groupid: number;
  supplier_id: number;
  token: string;
  app_token: string | null;
  app_status: number;
  app_isauth: number;
  app_pwds: string | null;
  pid: string | null;
  is_admin: string;
  addtime: number;
  outtime: number;
  huokuan_set: string | null;
  fujiafei_set: string | null;
  total_set: string | null;
  address: string;
  area: string;
}

// 完整的用户信息状态
export interface UserState {
  // 基本信息
  token?: string;

  // 完整的用户信息（从 getUserInfoByToken 接口获取的 data 字段）
  userInfo?: UserInfo;
}

export type providerType =
  | 'weixin'
  | 'qq'
  | 'sinaweibo'
  | 'xiaomi'
  | 'apple'
  | 'univerify'
  | undefined;
